package com.dyoud.api.shop.shopInfo.dto;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

/**
 * @author
 */
public class ShopPicDto implements Serializable {
    /**
     * 图片ID
     */
    private Long picId;

    /**
     * 店铺ID
     */
    @NotNull(message = "图片对应店铺id不能为空")
    private Long shopId;

    /**
     * 图片链接地址
     */
    @NotBlank(message = "图片链接地址不能为空")
    private String url;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 图片类别 1:财务信息 2:店铺图片
     */
    @NotNull(message = "图片类别不能为空")
    private Integer type;

    private static final long serialVersionUID = 1L;

    public Long getPicId() {
        return picId;
    }

    public void setPicId(Long picId) {
        this.picId = picId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}